<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Send private message</title>
    </h:head>
    <h:body>
        <ui:composition template="../communityTemplate.xhtml">

            <ui:define name="left">
                <ul>
                    <li>
                        <a href="/RomaClient/PrivateMessage/listmessages.jsf">List messages</a>
                    </li>
                    
                    <li>
                        <a href="/RomaClient/PrivateMessage/sendmessage.jsf">Send message</a>
                    </li>
                </ul>
                
            </ui:define>
            
            
            <ui:define name="content">
                <h:form>
                    <table>
                        <tr>
                            <td>
                                <h:outputLabel value="Title: " /> 
                            </td>
                            <td>
                                <p:inputText value="#{message.title}" disabled="TRUE" size="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputLabel value="Time sent: " /> 
                            </td>
                            <td>
                                <p:inputText value="#{message.modifiedDate}" disabled="TRUE" size="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputLabel value="Sender: " /> 
                            </td>
                            <td>
                                <p:inputText value="#{readMessageBean.message.sender}" disabled="TRUE" size="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputLabel value="Receiver: " /> 
                            </td>
                            <td>
                                <p:inputText value="#{readMessageBean.message.receiver}" disabled="TRUE" size="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputLabel value="Message: " /> 
                            </td>
                            <td>
                                <p:inputTextarea value="#{readMessageBean.message.message}" disabled="TRUE" cols="43" rows="20" />
                            </td>
                        </tr>
                    </table>
                    
                </h:form>

            </ui:define>
        </ui:composition>
    </h:body>
</html>

